package workers;

import java.util.concurrent.BlockingQueue;

import workerUIs.StepFrame;
import workflow.step.ReleaseStep;
import model.Software;

public class ReleaseStepWorker extends AbstractStepSwingWorker {

	public ReleaseStepWorker(StepFrame frame,
			BlockingQueue<Software> inputQueue) {
		super(frame, inputQueue, null, null);
	}

	@Override
	protected Software doInBackground() throws Exception {
		this.software = this.inputQueue.take();
		doStep(software);
		return this.software;
	}
	
	@Override
	protected Software doStep(Software software) {
		return new ReleaseStep().doStep(software);
	}

}
